package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;import org.tgcloud.group.entity.MjOrderBlindBox;import org.tgcloud.group.web.controller.dto.file.GoodOrderDTO;import org.tgcloud.group.web.controller.dto.order.GoodDTO;import java.util.List;

public interface MjOrderBlindBoxMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjOrderBlindBox record);

    int insertSelective(MjOrderBlindBox record);

    MjOrderBlindBox selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjOrderBlindBox record);

    int updateByPrimaryKey(MjOrderBlindBox record);

    int insertBatch(@Param("goods") List<GoodDTO> goodDTOS, @Param("userId") int userId, @Param("orderId") Integer orderId);

    int updateStatusByOrderId(@Param("orderId") Integer orderId);

    List<MjOrderBlindBox> selectGoodsByOrderId(@Param("orderId") Integer orderId);

    List<GoodOrderDTO> selectGoodListByOrderId(@Param("orderId") Integer orderId);
}